<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

/* JoomLeague League Management and Prediction Game for Joomla!
 * @version $Id: edit_form_players.tpl.php 1126 2008-06-09 05:45:04Z julienv $
 * @package Joomleague
 * @copyright Copyright (C) 2007  JoomLeague
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see _joomleague_license.txt
 *
 * Homepage: http://www.joomleague.de
 * Support: htt://www.joomleague.de/forum/
 *
 * This file is part of JoomLeague.
 *
 * JoomLeague is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * Please note that the GPL states that any headers in files and
 * Copyright notices as well as credits in headers, source files
 * and output (screens, prints, etc.) can not be removed.
 * You can extend them with your own credits, though...
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 *
 * The "GNU General Public License" (GPL) is available at
 * http://www.gnu.org/copyleft/gpl.html.
*/

?>

<html>
<head>

<script language="javascript" type="text/javascript">

   function submitbutton(pressbutton) {
      var form = document.adminForm;
      if (pressbutton == 'cancel') {
        submitform( pressbutton );
            return;
      }

      // do field validation

     if (form.lastname.value == ""){
        alert( "<?php echo _JL_ADMIN_EDIT_FORM_PLAYERS_JS_CHECK2;?>" );
     }
      else {
          submitform( pressbutton );
      }
   }

</script>

  <title></title>
</head>

<body>
  <form action="index2.php" method="post" name="adminForm" id="adminForm">
    <div id="right">
      <div id="rightpad">
        <!-- Header START -->

        <div id="step">
          <div class="t">
            <div class="t">
              <div class="t"></div>
            </div>
          </div>

          <div class="m" align="left">
            <div class="far-right">
              <div class="button1-left">
                <div class="help">
                  <a href="http://www.joomleague.de" alt="<?php echo _JL_ADMIN_MANUAL;?>" title="<?php echo _JL_ADMIN_MANUAL;?>" target="blank"><?php echo _JL_ADMIN_MANUAL;?></a>
                </div>
              </div>

              <div class="button1-left">
                <div class="forum">
                  <a href="http://www.joomleague.de/forum/" alt="<?php echo _JL_ADMIN_FORUM;?>" title="<?php echo _JL_ADMIN_FORUM;?>" target="blank"><?php echo _JL_ADMIN_FORUM;?></a>
                </div>
              </div>

              <div class="button1-left">
                <div class="about">
                  <a href="http://www.joomleague.de" alt="<?php echo _JL_ADMIN_INFO;?>" title="<?php echo _JL_ADMIN_INFO;?>" target="blank"><?php echo _JL_ADMIN_INFO;?></a>
                </div>
              </div>
            </div>

            <div class="button1-left">
              <div class="blank">
                <a href="index2.php?option=com_joomleague"></a>
              </div>
            </div><span class="step"><?php echo _JL_ADMIN_EDIT_FORM_PLAYERS_PLAYERS;?></span>
          </div>

          <div class="b">
            <div class="b">
              <div class="b"></div>
            </div>
          </div>
        </div><!-- Header END -->

        <div id="installer">
          <!-- Title 1 START -->

          <div class="t">
            <div class="t">
              <div class="t"></div>
            </div>
          </div>

          <div class="m" align="left">
            <h2><?php echo $row->id ? _JL_ADMIN_EDIT_FORM_PLAYERS_TITLE_EDIT : _JL_ADMIN_EDIT_FORM_PLAYERS_TITLE_NEW;?></h2><!-- Titel 1 END -->
            <!-- Content 1 START -->

            <div class="install-text">
              <table cellpadding="4" cellspacing="1" border="0" width="100%" class="adminform">
                <tr>
                  <td width="20%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PLAYERS_FIRSTNAME;?></td>

                  <td width="80%"><input class="inputbox" type="text" name="firstname" size="20" maxlength="64" value="<?php echo $row->firstname;?>"></td>
                </tr>

                <tr>
                  <td width="20%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PLAYERS_LASTNAME;?></td>

                  <td width="80%"><input class="inputbox" type="text" name="lastname" size="20" maxlength="64" value="<?php echo $row->lastname;?>"></td>
                </tr>

                <tr>
                  <td width="20%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PLAYERS_BIRTHDAY;?></td>

                  <td width="80%"><input class="inputbox" type="text" name="birthday" size="20" maxlength="64" value="<?php echo $row->birthday;?>"><?php echo _JL_ADMIN_EDIT_FORM_PLAYERS_DATE_FORMAT;?></td>
                </tr>

                <tr>
                  <td width="20%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PLAYERS_COUNTRY;?></td>

                  <td width="80%"><?php echo $clist;?></td>
                </tr>

                <tr>
                  <td width="20%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PLAYERTOOL_POSITION;?></td>

                  <td width="80%"><?php echo $positionlist;?></td>
                </tr>

                <tr>
                  <td width="20%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PLAYERTOOL_PHOTO;?></td>
				<?php
                $picture = '';
                if ($row->default_picture != '') { $picture = $row->default_picture;}
                if($picture != ""){ ?>
                  <td width="80%" align="left"><img src="<?php echo sprintf("%s/%s",_JOOMLA_JL_LIVE_SITE, $row->default_picture);?>" border="0"></td>
                </tr><?php } ?>

                <tr>
                  <td width="20%" align="right"><?php echo _JOOMLA_JL_LIVE_SITE;?>/</td>

                  <td width="80%"><input class="inputbox" type="text" name="default_picture" size="50" maxlength="250" value="<?php echo sprintf("%s",$picture);?>" /td>
                </tr>

                <tr>
                  <td width="20%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PLAYERTOOL_HEIGHT;?></td>

                  <td width="80%"><input class="inputbox" type="text" name="default_height" size="5" maxlength="3" value="<?php echo $row->default_height;?>"> (cm)</td>
                </tr>

                <tr>
                  <td width="20%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PLAYERTOOL_WEIGHT;?></td>

                  <td width="80%"><input class="inputbox" type="text" name="default_weight" size="5" maxlength="3" value="<?php echo $row->default_weight;?>"> (kg)</td>
                </tr>

                <tr>
                  <td align="right"><?php echo _JL_ADMIN_EDIT_FORM_PLAYERS_JLUSER;?></td>

                  <td><?php echo $user_list; ?></td>
                </tr>

                <tr>
                  <td width="20%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PLAYERS_INFO;?></td>

                  <td width="80%"><input class="inputbox" type="text" name="info" size="50" maxlength="250" value="<?php echo $row->info;?>"></td>
                </tr>
              
                <tr>
                  <td width="20%" align="right"><?php echo _JL_ADMIN_EDIT_FORM_PLAYERS_DESCRIPTION;?></td>

                  <td width="80%">
                    <?php
                    			// parameters : areaname, content, hidden field, width, height, rows, cols
                    			editorArea( 'editor1',  $row->description , 'description', '600', '250', '50', '5' ) ; 
                    ?>
                  </td>
                </tr>
              </table>
            </div><!-- Content 1 END -->
            <!-- Info 1 START -->

            <div class="install-body" style="width:200px;">
              <div class="t">
                <div class="t">
                  <div class="t"></div>
                </div>
              </div>

              <div class="m">
                <fieldset>
                  <table class="content">
                    <tr>
                      <td><?php echo _JL_ADMIN_EDIT_FORM_PLAYERS_HINT1;?></td>
                    </tr>
                  </table>
                </fieldset>
              </div>

              <div class="b">
                <div class="b">
                  <div class="b"></div>
                </div>
              </div>

              <div class="clr"></div>
            </div><!-- Info 1 END -->

            <div class="clr"></div>
          </div>

          <div class="b">
            <div class="b">
              <div class="b"></div>
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="clr"></div>
    <input type="hidden" name="id" value="<?php echo $row->id; ?>">
    <input type="hidden" name="option" value="<?php echo JL_OPTION;?>">
    <input type="hidden" name="act" value="<?php echo JL_ACTION;?>">
    <input type="hidden" name="task" value="">
  </form>
</body>
</html>
